home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / system / skey40.zip / SHOWDEMO.BAT < prev    next >
DOS Batch File  |  1991-12-23  |  2KB  |  63 lines

  1. :Batutil c(o) 1990, 1991 Barry Simon and Richard Wilson
  2. : Version 4.0
  3. echo off
  4. cls
  5. batutil {inc %0 code}
  6. goto end
  7. :echo1
  8.    @1FBATUTIL @1Ehas a number of tools to spruce up what you display on
  9. the screen during batch files.  You can use the PRetty command to control
  10. colors so that
  11.      @1FBATUTIL {PR @@1EC@@1Fo@@1Al@@1Do@@1Br}
  12. would display as
  13.  
  14.       @1EC@1Fo@1Al@1Do@1Br
  15.  
  16. BATUTIL can also display
  17.  
  18.  
  19. :echo2
  20.  
  21.  
  22. The BIG letters can have varrying
  23.  
  24.  
  25. :echo3
  26.  
  27.  
  28. The strings that you echo (or that you place in the environment) have
  29. metastring translation, that is shorthand expressions which are converted at
  30. the time the batch file is run just as the DOS PROMPT command changes $$t to
  31. the current time.  These include:
  32.  
  33. @0A          SHORTHAND        MEANING             TRANSLATION
  34. @0A         ────────────    ────────────────    ───────────────────
  35. @0E           $$p         @0B    current path  @0F       $p
  36. @0E           $$W         @0B    day of week   @0F       $W
  37. @0E           $$E         @0B    date in full  @0F       $E
  38. @0E           $$H:$$m      @0B    time as HH:MM @0F       $H:$m
  39.  
  40.  
  41. One can place small amounts of material to echo on the command line and take
  42. whole screenfuls like this from a file.  In fact, this screen is part of
  43. the batch file itself!!
  44.  
  45. @0F  Thanks for using BATUTIL.   Hit a key to exit.
  46.  
  47.  
  48. :code
  49. CU - {CL} RO 2
  50. FP %0 echo1
  51. BE $S$SBIG
  52. EC $_letters. Hit a key for more [] GE ELSE
  53. AT 0F {CL}
  54. FE %0 echo2
  55. CO 8 [] BP @0BC@06o@02L@0Co@0ER@0Ds
  56. AT 0F [] GE WA2 [] EC $_and foregrounds$_$_
  57. CO 28 [] AT 0E [] BI 255 [] BE H^
  58. BI 01 [] BE i^
  59. BI 19 [] BE !
  60. GE WA6 EL
  61. AT 02 {CL} FP %0 echo3 {GE EL}
  62. :end
  63.